﻿//操作日志
function Operatelog(objt, id,t) {
    var mask = document.createElement("div");//js新建元素
    mask.setAttribute("id", "maskDiv");//给元素加id
    document.body.appendChild(mask);//把元素放进body标签里面
    if (t == undefined || t==null)
    {
        t = 0;
    }
    $('#maskDiv').dialog({
        title: '操作日志',
        width: 650,
        height: 300,
        closed: false,
        cache: false,
        resizable: true,
        shadow: true,
        // href: '@Url.Action("LogDetail", "OperateLog")' + '?id=' + id + '&ob=' + objt
        href: '/Plat/OperateLog/LogDetail' + '?id=' + id + '&ob=' + objt + '&t=' + t
    });
}


function GoodsOperatelog(objt, id, ot, goodsId, skuId) {
    var mask = document.createElement("div");//js新建元素
    mask.setAttribute("id", "maskDiv");//给元素加id
    document.body.appendChild(mask);//把元素放进body标签里面
    $('#maskDiv').dialog({
        title: '操作日志',
        width: 650,
        height: 300,
        closed: false,
        cache: false,
        resizable: true,
        shadow: true,
        // href: '@Url.Action("LogDetail", "OperateLog")' + '?id=' + id + '&ob=' + objt
        href: '/Plat/OperateLog/LogDetailGoods?id=' + id + '&ob=' + objt + "&ot=" + ot + "&goodsId=" + goodsId + "&skuId=" + skuId
    });
}
